package com.kingyea.app.market.Dictionary.service;

import com.kingyea.app.market.Dictionary.bean.Dictionary;

import java.util.List;

/**
 * @author
 * @version v1.0.0
 * @description Dictionary 接口
 * @date Created in 2018-02-23 17:02:59
 */
public interface DictionaryService {

    /**
     * 通过ID查找对象
     *
     * @param id
     * @return
     */
    Dictionary getById(Integer id) throws Exception;

    /**
     * 列表
     *
     * @param dictionary
     * @return
     */
    List<Dictionary> list(Dictionary dictionary) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    int deleteById(Integer id) throws Exception;

    /**
     * 添加
     *
     * @param dictionary
     * @return
     */
    Dictionary save(Dictionary dictionary) throws Exception;

    /**
     * 更新
     *
     * @param dictionary
     * @return
     */
    Dictionary update(Dictionary dictionary) throws Exception;
}
